import "./index.css"

export default function DayTotal(props){
    // console.log(props.data);//父组件传过来的参数
    return <ul className="day-total">
    <li><span className="day-pay">支出</span>{props.data.pay}</li>
    <li><span className="day-income">收入</span>{props.data.income} </li>
    <li><span className="day-surplus"> {props.data.surplus} </span> <span>结余</span></li>
  </ul>
}